import request from '@/utils/request'

// 查询手续费分红记录列表
export function listServiceBonusRecord(query) {
  return request({
    url: '/admin/serviceBonusRecord/list',
    method: 'get',
    params: query
  })
}

// 查询手续费分红记录详细
export function getServiceBonusRecord(id) {
  return request({
    url: '/admin/serviceBonusRecord/' + id,
    method: 'get'
  })
}

// 新增手续费分红记录
export function addServiceBonusRecord(data) {
  return request({
    url: '/admin/serviceBonusRecord',
    method: 'post',
    data: data
  })
}

// 修改手续费分红记录
export function updateServiceBonusRecord(data) {
  return request({
    url: '/admin/serviceBonusRecord',
    method: 'put',
    data: data
  })
}

// 删除手续费分红记录
export function delServiceBonusRecord(id) {
  return request({
    url: '/admin/serviceBonusRecord/' + id,
    method: 'delete'
  })
}
